www.gusucode.com > 茶都拼客网全功能版 8 > 茶都拼客网全功能版 8.8源码程序/teasdxmccom/茶都拼客网V8.8(全功能,无限制,完全开源)/admin/User_list.asp

    <!--#include file="../Ku_inc/Ku_sql.asp"-->
<!--#include file="../Ku_inc/Ku_config.asp"-->
<!--#include file="Ku_conn.asp"-->
<!--#include file="../Ku_inc/Ku_md5.asp"-->
<!--#include file="../Ku_inc/inc.asp"-->
<!-- #include file="Session.asp"-->
<html>
<head>
<title>会员列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="include/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
input{
	height:22px;
	border:1px solid #BEBEBE;
	background-color:#FFF;
	padding-top: 2px;
	padding-right: 8px;
	padding-bottom: 0pt;
	padding-left: 3px;
}
-->
</style>
</head>
<body>
<script language="JavaScript" type="text/javascript">
function checkall(form)
{
for (var i=0;i<form.elements.length;i++)    {
var e = form.elements[i];
if (e.name != 'chkall') e.checked = form.chkall.checked; 
}
}
</script>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <td height="30" style="border: 1px solid #D0D4D9" bgcolor="#EEEEEE"><b> 当前栏目:&gt;</b> 会员管理</td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td width="30%">
   
	<input class="input_back" type="button" name="Submit0" value="管理首页"onclick="location.href='main.asp'"/></td>
    <td width="30%">
   <p align="center">
   <script language="javascript">
	function selectjump(welcomeshengbuy)
	{
		window.location.href('User_list.asp?id='+welcomeshengbuy);
	}
</script>
    </td>
<form method="post" action="?" name="myKeyword">
    <td width="40%">
    <div align="right">搜索:
        <input name="myKeyword" type="text" id="myKeyword" value="" style="WIDTH:30%" maxlength="50">
        <input type="submit" name="Submit" value="搜索(S)" class="input_back">
    </div>
    </td>
    </form>
  </tr>

<form action="deal_user.asp?action=del" method=post name="thisform">
<tr>
<td colspan="3"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="cecfce">
<tr>
<td width="30" bgcolor="e7ebef" style="font-weight: bold"><div align="center">操作</div></td>  
<td width="80" height="25" bgcolor="e7ebef" style="font-weight: bold" align="center">会 员</td>
<td width="40" height="25" bgcolor="e7ebef" style="font-weight: bold" align="center">积 分</td>
<td width="40" bgcolor="e7ebef" style="font-weight: bold"><div align="center">性 别</div></td>  
<td width="120" bgcolor="e7ebef" style="font-weight: bold"><div align="center">
	注册日期</div></td>
<td width="120" bgcolor="e7ebef" style="font-weight: bold"><div align="center">最后登陆日期</div></td>
<td width="50" bgcolor="e7ebef" style="font-weight: bold"><div align="center">登陆数</div></td>  
<td width="70" bgcolor="e7ebef" style="font-weight: bold"><div align="center">是否审核</div></td>  
<td  bgcolor="e7ebef" style="font-weight: bold"><div align="center">操作</div></td>

<%
userid=request.querystring("id")
	set rs=server.createobject("adodb.recordset")
	if userid=0 or userid=6 or userid=7 then
	sql="select * from ku_user where 1=1"
	end if
	if userid=1 then
	sql="select * from ku_user where shenhe=1 and 1=1"
	end if
	if userid=2 then
	sql="select * from ku_user where shenhe=0 and 1=1"
	end if
	if userid=3 then
	sql="select * from ku_user where uservip=1 and 1=1"
	end if	
	if userid=4 then
	sql="select * from ku_user where sex=1 and 1=1"
	end if	
	if userid=5 then
	sql="select * from ku_user where sex=0 and 1=1"
	end if	
			

	
	
	if not (Trim(Request("pageID"))="" or isempty(Trim(Request("pageID"))) ) then
		sql=sql&" and pageID="&clng(Request("pageID"))&""
	end if

	if not (Trim(Request("myKeyword"))="" or isempty(Trim(Request("myKeyword"))) ) then
		sql=sql&" and (username like '%" & Trim(Request("myKeyword")) & "%' or address like  '%" & Trim(Request("myKeyword")) & "%')"
	end if
	if userid=6 then
	sql=sql&" order by loginhits desc"
	end if
	if userid=7 then
	sql=sql&" order by jifen desc"
	end if	
	if userid<6 then
	sql=sql&" order by addtime desc"
	end if
	
	'response.write sql
	'response.End
	rs.open sql,conn,1,1
	
	dim a
	Set a=New PageList
	listLimit=15
	'模拟分页一页显示分页数
	pageLists=5
	'设置分页参数

If rs.BOF or rs.EOF Then 
%>
</tr>
<tr bgcolor="#C6E3F4">
  <td height="28" colspan="9" align="center" bgcolor="#FFFFFF">暂无记录!</td>
  </tr>
<%
else

'分页循环开始
totalList=rs.recordcount
a.InitPara=array(totalList,listLimit,pageLists)
a.PageList()
rs.pagesize=listLimit
page = request("page")
If page="" Then
	page=1
End If
rs.absolutepage = page
for i=1 to rs.pagesize
%>
<tr bgcolor="#ffffff" onMouseOver='this.style.backgroundColor="#F6f6f6"' 
onMouseOut='this.style.backgroundColor="#FAFAFA"'>
<td height="28" align="center"><input type="checkbox" name="ID" value="<%=Trim(rs("ID"))%>"></td>
<td align="center"><%=Trim(rs("username"))%><%if rs("uservip")=1 then%><img border="0" src="../Ku_skin/VIP.jpg" width="20" height="20" alt="本站的VIP钻石会员"><%end if%></td>
<td align="center"><%=Trim(rs("jifen"))%></td>
<td align="center">
<%if rs("sex")=1 then%>男<%else%>女<%end if%>
</td>
<td align="center"><%=Trim(rs("Addtime"))%></td>
<td align="center"><%=Trim(rs("logintime"))%></td>
<td align="center"><%=Trim(rs("loginhits"))%></td>
<td align="center"><%if Trim(rs("shenhe"))=1 then%>已审核<%else%><a href="deal_user.asp?action=shenhe&id=<%=rs("id")%>">未审核</a><%end if%></td>
<td align="center"><a href="?action=jifen&ID=<%=Trim(rs("ID"))%>">积分管理</a> <a href="deal_user.asp?action=chushihua&id=<%=rs("id")%>&pass=323b453885f5181f1b624d0b85f5181f1b624d0b">密码初始化</a> 
<a href="?action=edituser&id=<%=rs("id")%>">编辑</a></td>


</tr>
<%
rs.movenext
if rs.eof then exit for
next

end if
%>
</table></td>
  </tr>
  <tr>
    <td colspan="3"><div align="right">
          <input type=checkbox name=chkall value=on onClick="checkall(this.form)">全部选中<input type=submit name=action onClick="{if(confirm('确定删除选定的纪录吗?')){this.document.thisform.submit();return true;}return false;}" value="批量删除(D)" class="input_back">
    </div></td>
  </tr>
  <tr>
    <td colspan="3"><%=a.PageInfo%></td>
  </tr>
  <tr>
    <td colspan="3"></td>
  </tr>
 </form>
</table>
<%
rs.close
set rs=nohing
%>

<br>
<%
if request("action")="jifen" then
id=request("id")
    set rs=server.createobject("adodb.recordset")
    sql="select * from ku_user where id="&id
    rs.open sql,conn,1,3
    jifen=rs("jifen")
%>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<form method="POST" action="Deal_user.asp?act=ejifen&id=<%=id%>">
  <tr>
  <td height="30" style="border: 1px solid #D0D4D9" bgcolor="#EEEEEE" align=center> <b>&nbsp;会员</b>:<font color="#FF0000"><%=rs("username")%></font>    |  当前积分:<%=jifen%>  |  修改为:<input type="text" name="jifen" size="7" value="<%=jifen%>" maxlength="5"> 
	分 <input type="submit" value="修改积分" ></td></form>
  </tr>
</table>
<%end if%>

<%
if request("action")="edituser" then
id=request("id")
    set rs=server.createobject("adodb.recordset")
    sql="select * from ku_user where id="&id
    rs.open sql,conn,1,3
    jifen=rs("jifen")
%>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<form method="POST" action="Deal_user.asp?act=edituser&id=<%=id%>">
  <tr>
  <td height="30" style="border: 1px solid #D0D4D9" bgcolor="#EEEEEE" align=center> <b>&nbsp;会员</b>:<font color="#FF0000"><%=rs("username")%></font> 
	<br> QQ:<input type="text" name="qq" size="27" value="<%=rs("qq")%>" maxlength="10"> 
	<br>EMAIL:<input type="text" name="email" size="30" value="<%=rs("email")%>" maxlength="35"> 
	<br> 网站:<input type="text" name="http" size="28" value="<%=rs("http")%>" maxlength="35"> 
	<br>电话:<input type="text" name="tel" size="28" value="<%=rs("tel")%>" maxlength="11"> 
	<br>地址:<input type="text" name="address" size="42" value="<%=rs("address")%>" maxlength="55"> 
	<br>是否提升管理:<input type="radio" value="1"  <%if rs("admin")=1 then%> checked <%end if%>name="admin">是 
									<input type="radio" value="0" name="admin" <%if rs("admin")=0 then%> checked <%end if%>>否
									
<br>是否提升VIP:<input type="radio" value="1"  <%if rs("uservip")=1 then%> checked <%end if%>name="uservip">是 
									<input type="radio" value="0" name="uservip" <%if rs("uservip")=0 then%> checked <%end if%>>否									
									
									
									<input type="submit" value="修改资料" ></td></form>
  </tr>
</table>
<%end if%>
<hr/>
<p align="center"><!-- #include file="Ku_bottom.asp"--></p>
</body>
</html>